// 设计未按规范注册报错窗口

//去除VSCode非必要报警
// ignore_for_file: sized_box_for_whitespace, camel_case_types

import 'package:flutter/material.dart';
import 'package:project_award_statistics/utils/mobile_material_design/my_button.dart';

class DialogRegisterErr_Exists extends StatelessWidget {
  const DialogRegisterErr_Exists({super.key});

  // 提醒:尽量不要,不要使用绝对布局,因为不同安卓设备的分辨率不一样!!!

  @override
  Widget build(BuildContext context) {
    return AlertDialog(
      backgroundColor: Theme.of(context).colorScheme.surface,
      content: Container(
        height: 192,
        width: 450,
        child: Column(   //设置总列式布局容器
          mainAxisAlignment: MainAxisAlignment.spaceBetween,
          children: [
            Center(
              child: Text(
                "注册错误",
                style: TextStyle(
                  fontSize: 20,
                  fontWeight: FontWeight.bold,
                ),
              ),
            ),
            // SizedBox(height: 35,),
            Text(
              "您已进行过注册,请勿进行重复注册操作!",
              style: TextStyle(
                fontSize: 19,
              ),
            ),
            // SizedBox(height: 50,),
            Container(
              height: 45,
              width: 150,
              child: MyButton(
                text: "好的,我马上去检查", 
                onPressed: ()=>Navigator.of(context).pop(),
              ),
            ),
          ],
        ),
      ),
    );
  }
}